﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IM.Domain.Repository
{

    public interface IRepository<TEntity>
    {

        #region CRUD Operations
        TEntity Save(TEntity entity);
        bool Update(TEntity entity);
        bool Delete(TEntity entity);
        #endregion

        #region Retrieval Operations
        TEntity GetByID(long iD);
        //Returns list
        IQueryable<TEntity> GetAll();
        #endregion
    }
}
